$(function() {
    	
	    var datastr = "";

		var itemslsw = hq_str_sz300104.split(",");
	    var len = itemslsw.length;
	    datastr = "[";
	    len = 5;
	    for (var i = 1; i < len; i++) {
	 	    datastr += parseFloat(itemslsw[i]);
	 	    if (i != len-1) datastr += ",";
	    }
	    datastr += "]";
    
 	    $('#container').highcharts({
            chart: {
                type: 'line',
                marginRight: 130,
                marginBottom: 25
            },
            title: {
                text: '股票行情',
                x: -20 //center
            },
            subtitle: {
                text: itemslsw[30] + " - " + itemslsw[31],
                x: -20
            },
            xAxis: {
                categories: ['今日开盘', '昨日收盘', '当前', '今日最高', '今日最低']
            },
            yAxis: {
                title: {
                    text: ''
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                valueSuffix: ''
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -10,
                y: 100,
                borderWidth: 0
            },
            series: [{
                name: itemslsw[0],
                data: [parseFloat(itemslsw[1]),parseFloat(itemslsw[2]),parseFloat(itemslsw[3]),parseFloat(itemslsw[4])]
            }]
        });
});  

